package com.wt.springsamples.ext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.*;
import org.springframework.web.context.annotation.SessionScope;

@Configuration
@ComponentScan("com.wt.springsamples.ext")
public class ExtConfig {

    @Bean
    public Animal cat(){
        return  new Cat();
    }

    @Bean
    @Scope("prototype")
    public Animal dog(){
        return  new Dog();
    }
}
